package com.leff.cards.web.requests;

import com.leff.cards.util.Dictionary;
import com.leff.cards.web.WebRequest;
import com.leff.notifications.NotificationCenter;

public class LeaveGroupRequest extends WebRequest {

	public static final String GROUP_LEFT = "GroupLeft";
	
	public LeaveGroupRequest(long groupId, long userId) {
		super(WebCommand.LEAVE_GROUP);
		
		mParameters.put(Parameter.GROUP_ID, groupId);
		mParameters.put(Parameter.ID, userId);
	}

	@Override
	protected void parseResultDictionary(Dictionary dict) {
		
		NotificationCenter.postNotification(GROUP_LEFT, "Group Left");
	}
}
